{extend name="default/base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="main"}
<script src="__STATIC__/plugins/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<div class="wst-toolbar">
  <select name="cat1" id="cat1" onchange="getCat(this.value)" class="s-query">
      <option value="">-请选择商品分类-</option>
    {volist name=":WSTShopCats(0)" id="vo"}
          <option value="{$vo['catId']}" >{$vo['catName']}</option>
    {/volist}
  </select>
  <select name="cat2" id="cat2" class="s-query"><option value="">-请选择商品分类-</option></select>
  <select id='goodsType' class="s-query">
     <option value=''>全部商品类型</option>
     <option value='0'>实物商品</option>
     <option value='1'>虚拟商品</option>
  </select>
  <input type="text" name="goodsName" id="goodsName" class="s-query" placeholder='商品名称'/>
  <a class="s-btn btn btn-primary" id="store-query" onclick="loadGrid()"><i class="fa fa-search"></i>查询</a>
</label>
</div>
<div class="f-clear"></div>
<form id='editform' autocomplete='off'>
<div class="wst-toolbar">
        <div class="s-menu">
            <a href='javascript:;' onclick="changeSale(1,'store')" class="s-sale-up"><span>上架</span></a>
            <a href='javascript:void(0);' onclick="changeGoodsStatus('isRecom','store')" class="s-rec"><span>推荐</span></a>
            <a href='javascript:void(0);' onclick="changeGoodsStatus('isNew','store')" class="s-new"><span>新品</span></a>
            <a href='javascript:void(0);' onclick="changeGoodsStatus('isBest','store')" class="s-best"><span>精品</span></a>
            <a href='javascript:void(0);' onclick="changeGoodsStatus('isHot','store')" class="s-hot"><span>热销</span></a>
            <a href='javascript:void(0);' onclick="benchDel('store')" class="s-del btn btn-danger wst-rfloat" style="float: right;"><span><i class="fa fa-trash-o"></i>删除</span></a>
            <a href='javascript:void(0);' onclick="toAdd('store')" class="s-add btn btn-success wst-rfloat" style="float: right;"><span><i class="fa fa-plus"></i>新增</span></a>
         </div>
        </div>
     </form>
<div class='wst-grid'>
    <div id="mmg" class="mmg"></div>
    <div id="pg" style="text-align: right;"></div>
</div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__SHOP__/goods/goods.js?v={$v}'></script>
<script>
$(function(){storeByPage({$p});})
</script>
{/block}